<?php
/**
 * Created by PhpStorm.
 * User: Adminstratot
 * Date: 2019/4/23
 * Time: 13:33
 */

namespace app\api\validate;


use think\Validate;

class IDMustBePostiveInt extends BaseValidate
{
    //验证器
    protected $rule = [
        'id'    =>  'require|isPositiveInteger'
    ];

    protected $message = [
        'id'    =>  'id必须是正整数'
    ];
}